/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

/**
 *
 * @author Jarjarbing
 */

import play.db.jpa.*;
 
import javax.persistence.*;
 
import play.data.validation.*;
 
@Entity
public class Location extends Model{
    
    @Required
    @MaxSize(10)
    public String Location;
    
    @Required
    @MaxSize(3)
    @ManyToOne
    public MasLocation MasLoc;
    
    @Required 
    @ManyToOne 
    public Company CompanyID;
    
    @Override
    public String toString() {
      return Location; 
    }  
    
}